public class jishuhe {
    public static void main(String[] args) {
        int sum = 0, i;
        for (i = 1; i <= 100; i += 2) {
            sum += i;
        }
        int sum2 = 0, j;
        for (j = 1; j <= 100; j += 2){
            sum2 += j;
        }
        System.out.println(sum);
        System.out.println(sum2);
    }
}
